﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<IList<JLL.China.Model.Blocks>>" %>

    <table>
        <tr>
            <th></th>
            <th>
                Status
            </th>
            <th>
                SystemBlock
            </th>
            <th>
                BlockContent
            </th>
            <th>
                Title
            </th>
            <th>
                Slug
            </th>
            <th>
                Name
            </th>
            <th>
                Descriptions
            </th>
            <th>
                NameVI
            </th>
            <th>
                DescriptionsVI
            </th>
            <th>
                ID
            </th>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
                <%= Html.ActionLink("Edit", "Edit", new { /* id=item.PrimaryKey */ }) %> |
                <%= Html.ActionLink("Details", "Details", new { /* id=item.PrimaryKey */ })%> |
                <%= Html.ActionLink("Delete", "Delete", new { /* id=item.PrimaryKey */ })%>
            </td>
            <td>
                <%= Html.Encode(item.Status) %>
            </td>
            <td>
                <%= Html.Encode(item.SystemBlock) %>
            </td>
            <td>
                <%= Html.Encode(item.BlockContent) %>
            </td>
            <td>
                <%= Html.Encode(item.Title) %>
            </td>
            <td>
                <%= Html.Encode(item.Slug) %>
            </td>
            <td>
                <%= Html.Encode(item.Name) %>
            </td>
            <td>
                <%= Html.Encode(item.Descriptions) %>
            </td>
            <td>
                <%= Html.Encode(item.NameVI) %>
            </td>
            <td>
                <%= Html.Encode(item.DescriptionsVI) %>
            </td>
            <td>
                <%= Html.Encode(item.ID) %>
            </td>
        </tr>
    
    <% } %>

    </table>

    <p>
        <%= Html.ActionLink("Create New", "Create") %>
    </p>


